window.onload = () => AppdocFont();
window.addEventListener("resize", function () {//监听横竖屏切换  
    AppdocFont()
}, false);
function AppdocFont() {
    let r = document.documentElement;
    let w = r.getBoundingClientRect().width;//获取当前设备的宽度
    w = w > 600 ? 600 : w;
    r.style.fontSize = w / 7.5 + "px";
}